package com.enqualcomm.kids.manager;

import android.app.Activity;
import android.content.Intent;

import com.enqualcomm.kids.activities.FamilyActivity;
import com.enqualcomm.kids.network.socket.response.TerminallistResult;

/**
 * Created by Yinzhiqun on 2016/6/30.
 */
public class AddTerminalHandlerImp3 implements AddTerminalHandler {
    @Override
    public void afterAddTerminal(Activity activity, String terminalid, String userterminalid) {
        TerminallistResult.Terminal terminal = new TerminallistResult.Terminal();
        terminal.terminalid = terminalid;
        terminal.userterminalid = userterminalid;
        Intent intent = new Intent(activity, FamilyActivity.class);
        intent.putExtra("finishIntent", "setFamily");
        intent.putExtra("terminal", terminal);
        activity.startActivity(intent);
        activity.finish();
    }
}
